<template>
  <div>FileUploadExample</div>
  <dynamic-form :formConfig="formConfig" :formData="formData" :fileUploadSuccessHandle="fileUploadSuccessHandle" :fileUploadErrorHandle="fileUploadErrorHandle"/>
</template>
<script setup lang="ts">
import { formConfig } from './config'
import DynamicForm from '@/components/DynamicForm/DynamicForm.vue'
import { reactive } from 'vue'
import type { FormData } from '@/components/DynamicForm/type'
const formData = reactive<FormData>({})
function fileUploadSuccessHandle(value: any, oldValue?: string) {
console.log('fileUploadSuccessHandle', value, oldValue)
}
function fileUploadErrorHandle(value: any, oldValue?: string) {
  console.log('fileUploadSuccessHandle', value, oldValue)
}
</script>
<style scoped>

</style>
